//
//  HCAlGrowCollectionViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/3/13.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCAlGrowCollectionViewCell.h"

#import "HCHomeAlGrowModel.h"



@implementation HCAlGrowCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.headIMGWWW.constant = YBKAdaptiveH(20);
    self.ndas.constant = YBKAdaptiveH(20);
    
    self.alHeadIMG.layer.cornerRadius = YBKAdaptiveH(20)/2.0;
    self.alHeadIMG.layer.masksToBounds = YES;
//    [self bringSubviewToFront:self.alHeadIMG];
//    [self bringSubviewToFront:self.alName];
    self.contentImageViewSS.contentMode = UIViewContentModeScaleAspectFill;
    // Initialization code
}

-(void)setModel:(id)model {
    HCHomeAlGrowData *data = (HCHomeAlGrowData *)model;
    
    [self.contentImageViewSS sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.pic[0]]]];
    
    [self.alHeadIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.path]]];
    
    self.alName.text = [NSString stringWithFormat:@"%@",data.name];
}

@end
